package com.mutouren.web.databind;

import org.springframework.core.convert.converter.Converter;

public class IntegerConverter  implements Converter<String, Integer> {

	@Override
	public Integer convert(String source) {		
		try {
			return Integer.parseInt(source);
		} catch(Throwable t) {
			//t.printStackTrace();
			return null;
		}
	}

}
